import { createApp } from 'vue'
import { createPinia } from 'pinia'

import App from './App.vue'
import router from './router'

import './assets/styles/global.css' // 导入全局样式
import { useThemeStore } from './stores/theme' // 导入主题存储

const app = createApp(App)
const pinia = createPinia()

app.use(pinia)
app.use(router)

// 应用主题
const themeStore = useThemeStore()
themeStore.applyTheme()

app.mount('#app')
